package com.neo.web.beans;

import lombok.Getter;

@Getter
public enum ResultCode {

    // 成功
    SUCCESS(200, "成功"),
    SUCCESS_CREATE(201, "创建成功"),

    // 失败
    FAIL(400, "请求参数缺失或参数错误"),

    // 错误
    ERROR_EXCEPTION(500, "系统异常"),

    ;
    final int code;
    final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
